package liumengbaio.lolzhangyoubao.Activity.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import liumengbaio.lolzhangyoubao.R;

/**
 * Created by lanouhn on 16/9/12.
 */
public class AcountActivity extends AppCompatActivity{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.acount_activity);
        findViewById(R.id.btn_icon_qq).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent web_qq=new Intent(AcountActivity.this,InfoDetals.class);
                Bundle bundle=new Bundle();
                bundle.putString("url", " https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=100477605&daid=381&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=m_authorize&ucheck=1&fall_to_wv=1&response_type=token&client_id=100477605&redirect_uri=auth%3A%2F%2Ftauth.qq.com%2F&display=mobile&scope=get_user_info,get_simple_userinfo,get_user_profile,get_app_friends,add_share,list_album,upload_pic,add_album,set_user_face,get_vip_info,get_vip_rich_info,get_intimate_friends_weibo,match_nick_tips_weibo,add_t,add_pic_t ");
                web_qq.putExtras(bundle);
                startActivity(web_qq);
            }
        });
        findViewById(R.id.btn_sina).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent web_sina=new Intent(AcountActivity.this,InfoDetals.class);
                Bundle bundle=new Bundle();
                bundle.putString("url", " https://open.weibo.cn/oauth2/authorize?client_id=136061666&response_type=code&redirect_uri=http%3A%2F%2Fwww.anzogame.com%2F&scope=follow_app_official_microblog&display=mobile ");
                web_sina.putExtras(bundle);
                startActivity(web_sina);
            }
        });
        findViewById(R.id.btn_icon_tencent).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent web_tencent=new Intent(AcountActivity.this,InfoDetals.class);
                Bundle bundle=new Bundle();
                bundle.putString("url", "http://ui.ptlogin2.qq.com/cgi-bin/login?style=9&appid=46000101&daid=6&pt_no_auth=1&s_url=https%3A%2F%2Fopen.t.qq.com%2Fcgi-bin%2Foauth2%2Fauthorize%3Foauthtoken%3D%26client_id%3D801401170%26response_type%3Dcode%26redirect_uri%3Dhttp%253A%252F%252Fwww.anzogame.com%252F%26checkStatus%3Dyes%26appfrom%3Dandroid%26g_tk%3D%26sessionKey%3Dc25041a6775f49c89b684d95f3ce445d%26checkType%3DshowAuth%26state%3D&low_login=1&hln_css=http%3A%2F%2Fimg1.gtimg.com%2Fapp%2Fpics%2Fhv1%2F72%2F133%2F1425%2F92694612.png&hln_copyright=%E8%85%BE%E8%AE%AF%E5%BE%AE%E5%8D%9A%E5%BC%80%E6%94%BE%E5%B9%B3%E5%8F%B0");
                web_tencent.putExtras(bundle);
                startActivity(web_tencent);
            }
        });
        findViewById(R.id.edit_head_left_title).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
